
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">

                <li>
                <i class="icon iconfont icon-fanhui"></i>
                    <div class="name">返回</div>
                    <div class="fontclass">.icon-fanhui</div>
                </li>

                <li>
                <i class="icon iconfont icon-phonedateicon29"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-phonedateicon29</div>
                </li>

                <li>
                <i class="icon iconfont icon-shop2"></i>
                    <div class="name">商店</div>
                    <div class="fontclass">.icon-shop2</div>
                </li>

                <li>
                <i class="icon iconfont icon-icon128"></i>
                    <div class="name">订单</div>
                    <div class="fontclass">.icon-icon128</div>
                </li>
                <li>
                <i class="icon iconfont icon-dizhi"></i>
                    <div class="name">地址</div>
                    <div class="fontclass">.icon-dizhi</div>
                </li>

                <li>
                <i class="icon iconfont icon-fapiao"></i>
                    <div class="name">发票</div>
                    <div class="fontclass">.icon-fapiao</div>
                </li>

                <li>
                <i class="icon iconfont icon-erweima"></i>
                    <div class="name">二维码</div>
                    <div class="fontclass">.icon-erweima</div>
                </li>

                <li>
                <i class="icon iconfont icon-daishouhuo"></i>
                    <div class="name">待收货</div>
                    <div class="fontclass">.icon-daishouhuo</div>
                </li>

                <li>
                <i class="icon iconfont icon-daichengtuan"></i>
                    <div class="name">待成团</div>
                    <div class="fontclass">.icon-daichengtuan</div>
                </li>

                <li>
                <i class="icon iconfont icon-women"></i>
                    <div class="name">我们</div>
                    <div class="fontclass">.icon-women</div>
                </li>

                <li>
                <i class="icon iconfont icon-bangzhu"></i>
                    <div class="name">帮助</div>
                    <div class="fontclass">.icon-bangzhu</div>
                </li>

                <li>
                <i class="icon iconfont icon-daishouhuo1"></i>
                    <div class="name">待发货</div>
                    <div class="fontclass">.icon-daishouhuo1</div>
                </li>

                <li>
                <i class="icon iconfont icon-finish"></i>
                    <div class="name">完成</div>
                    <div class="fontclass">.icon-finish</div>
                </li>

                <li>
                <i class="icon iconfont icon-youjian"></i>
                    <div class="name">邮件</div>
                    <div class="fontclass">.icon-youjian</div>
                </li>

                <li>
                <i class="icon iconfont icon-daifukuan"></i>
                    <div class="name">待付款</div>
                    <div class="fontclass">.icon-daifukuan</div>
                </li>

                <li>
                <i class="icon iconfont icon-pingjia"></i>
                    <div class="name">评价</div>
                    <div class="fontclass">.icon-pingjia</div>
                </li>

                <li>
                <i class="icon iconfont icon-kefu"></i>
                    <div class="name">客服</div>
                    <div class="fontclass">.icon-kefu</div>
                </li>

                <li>
                <i class="icon iconfont icon-hongbao"></i>
                    <div class="name">红包</div>
                    <div class="fontclass">.icon-hongbao</div>
                </li>

                <li>
                <i class="icon iconfont icon-dingdan"></i>
                    <div class="name">订单</div>
                    <div class="fontclass">.icon-dingdan</div>
                </li>

                <li>
                <i class="icon iconfont icon-cart-copy"></i>
                    <div class="name">购物车空</div>
                    <div class="fontclass">.icon-cart-copy</div>
                </li>

                <li>
                <i class="icon iconfont icon-ios-yonghu"></i>
                    <div class="name">用户</div>
                    <div class="fontclass">.icon-ios-yonghu</div>
                </li>

                <li>
                <i class="icon iconfont icon-add"></i>
                    <div class="name">添加</div>
                    <div class="fontclass">.icon-add</div>
                </li>

                <li>
                <i class="icon iconfont icon-shouye"></i>
                    <div class="name">首页</div>
                    <div class="fontclass">.icon-shouye</div>
                </li>

                <li>
                <i class="icon iconfont icon-canshu"></i>
                    <div class="name">参数</div>
                    <div class="fontclass">.icon-canshu</div>
                </li>

                <li>
                <i class="icon iconfont icon-pingfen-"></i>
                    <div class="name">评分-01</div>
                    <div class="fontclass">.icon-pingfen-</div>
                </li>

                <li>
                <i class="icon iconfont icon-gouwulanbtn-"></i>
                    <div class="name">购物篮btn01-01</div>
                    <div class="fontclass">.icon-gouwulanbtn-</div>
                </li>

        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
